#ifndef SCENE_H
#define SCENE_H

#include <QGraphicsScene>
#include <QVector>

class Drawer;
class ChipPlace;
class Chip;

class WoodenSolitaireScene : public QGraphicsScene
{
public:
    explicit WoodenSolitaireScene(int chipSize, const QColor &color);
    ChipPlace* getPlaceItem(int row, int col);
    bool jump(Chip *chip, ChipPlace *place);

    void addChip(Chip *chip);
    void addPlace(ChipPlace *place);

private:
    Drawer *drawer;
    QVector<ChipPlace*>  places;
    QVector<Chip*> chips;
};

#endif // SCENE_H
